package com.cs.controller;

import com.cs.service.CSBudgetService;
import com.ruoyi.common.core.domain.R;
import com.ruoyi.common.security.annotation.RequiresPermissions;
import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author：lyj
 * @Package：com.cs.controller
 * @Project：RuoYi-Cloud-master
 * @name：CSBudgetController
 * @Date：2024/12/09 9:15
 * @Filename：CSBudgetController
 */
@Tag(name = "管理后台 - 预算表")
@RestController
@RequestMapping("/budget")
public class CSBudgetController {
    @Resource
    private CSBudgetService service;
    /**
     * 查询采购计划总金额
     * @return
     */
    @RequiresPermissions
    @PostMapping("/queryTotalPurchaseAmount")
    public R queryTotalPurchaseAmount() {
        return R.ok(service.queryTotalPurchaseAmount());
    }
}
